import HttpClient from '@/utils/axios';
import type { ListParams, ListModel } from './model/userModel';

export const getList = (params: ListParams) => {
    return HttpClient.get<ListModel>('/list1', { params });
};

export const postList = (data: ListParams) => {
    // 使用 POST 请求发送数据到服务器
    return HttpClient.post('/postlist2', data);
};

export const postList3 = (payload: ListParams) => {
    return HttpClient.post('/postlist3', payload, {
        headers: {
            'Content-Type': 'application/json',
            // 其他自定义请求头
        },
    });
};